package com.hl.web;


import com.hl.pojo.Psychologicalassessments;
import com.hl.service.Xinliceping2Service;
import com.hl.util.GeneralResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/Xinli2")
public class Xinliceping2Controller {

    @Autowired
    public  Xinliceping2Service xinliceping2Service;

    @RequestMapping("/ceping2")
    public GeneralResult xinlicepingList2(){

        List<Psychologicalassessments> list = xinliceping2Service.XinlicepingListAll2();

        System.out.println(list);

        return GeneralResult.success(list);
    }

}
